import React, { Component } from 'react'
import Test from './Test'
export default class App extends Component {
  state = {
    c: 0,
  }
  render() {
    // console.log('app挂载或更新了')
    return (
      <div>
        App
        <button
          onClick={() => {
            this.setState({
              c: 2,
            })
          }}
        >
          +
        </button>
        <hr />
        <Test c={this.state.c}></Test>
      </div>
    )
  }
}
